<template>
  <el-tabs v-model="activeName">
    <el-tab-pane label="编辑" name="zero">
      <edit v-if="activeName==='zero'"/>
    </el-tab-pane>
    <el-tab-pane label="审核中" name="first">
      <passing v-if="activeName==='first'"/>
    </el-tab-pane>
    <el-tab-pane label="已通过" name="second">
      <had-pass v-if="activeName==='second'"/>
    </el-tab-pane>
    <el-tab-pane label="已拒绝" name="third">
      <no-pass v-if="activeName==='third'"/>
    </el-tab-pane>
  </el-tabs>
</template>

<script>
  import Edit from './edit'
  import HadPass from './hadPass'
  import Passing from './passing'
  import NoPass from './noPass'

  export default {
    name: "EditOrder",
    components: {Edit, HadPass, Passing, NoPass},
    data() {
      return {
        activeName: 'zero'
      }
    }
  }
</script>
